package com.demo1.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo1.entity.Pet;
import com.demo1.mapper.PetMapper;
import com.demo1.service.IPetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
 * 宠物Service实现类
 */
@Service("petService")
public class IPetServiceImpl extends ServiceImpl<PetMapper, Pet> implements IPetService {
    @Autowired
    private PetMapper petMapper;

    @Override
    public List<Pet> list(Map<String, Object> map) {
        return petMapper.list(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return petMapper.getTotal(map);
    }

    @Override
    public Integer add(Pet pet) {
        return petMapper.add(pet);
    }

    @Override
    public Integer update(Pet pet) {
        return petMapper.update(pet);
    }


}
